package com.fancylargo.crowd;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

// 开启注册服务发现
@EnableDiscoveryClient
// 配置启动项，并排除跟数据库相关的依赖
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class CrowdGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(CrowdGatewayApplication.class, args);
        System.out.println("网关服务启动成功！");
    }

}
